
  <%if @estado==1%>
    <h3 align="center">Asignación de Miembro INC a la Incidencia</h3>
  <%elsif @estado==3%>
    <h3 align="center">Asignación de Jefe INC a la Incidencia</h3>
  <%elsif @estado==4%>
    <h3 align="center">Asignación de Experto Legal a la Incidencia</h3>   
  <%end%>

  <%= form_for @incidence,  :html => {:onsubmit => "return validate(this);", :multipart => true } do |f| %>

   <fieldset id="agrupacion" >
      <legend>Datos Patrimonio: <%= @cultural_heritage.name %></legend>
      <fieldset class="column-left">
        <div class="field" id="">
          <%= f.label :'Personas' %>
          <%if @estado==1%>
              <%= f.select :person1, @lista_personas.collect { |t| [t.name,t.id]}, {:include_blank=>"Seleccione"},{:class => 'combobox'} %>
          <%elsif @estado==3%>
              <%= f.select :person2, @lista_personas.collect { |t| [t.name,t.id]}, {:include_blank=>"Seleccione"},{:class => 'combobox'} %>
          <%elsif @estado==4%>
              <%= f.select :person3, @lista_personas.collect { |t| [t.name,t.id]}, {:include_blank=>"Seleccione"},{:class => 'combobox'} %>
          <%end%>
        </div>
         <div class="field">
              <%= f.label :'Breve Comentario:'%><br />
          <%if @estado==1%>
              <%= f.text_area :coment1, :rows => "4", :cols => "30"  %>
          <%elsif @estado==3%>
              <%= f.text_area :coment2, :rows => "4", :cols => "30"  %>
          <%elsif @estado==4%>
              <%= f.text_area :coment3, :rows => "4", :cols => "30"  %>
          <%end%>

         </div>
      </fieldset>
      <%if !@cultural_heritage.avatar_file_name.blank? %>
      <fieldset class="column-right" id="agrupacion" >
        <legend>Foto:</legend>
        <div <%if @cultural_heritage.avatar_file_name.blank? %> style="display:none"<%end%>>

        <div class="field" align="center">
            <%cultural_heritage_cultural_heritage_avatar=@cultural_heritage%>
            <a href="<%=cultural_heritage_cultural_heritage_avatar.avatar.url%>" rel="lightbox[banners]" title="<%=cultural_heritage_cultural_heritage_avatar.name%>"><img class="thumb" src="<%=cultural_heritage_cultural_heritage_avatar.avatar.url%>"  width="100" height="100" /></a>
        </div>

        </div>
      </fieldset>
      <%end%>
       
  </fieldset>
    <div class="actions">
      <%= f.submit :'Guardar', :onclick => "return confirm('¿Seguro que desea guardar?')"%>
    </div>
  <% end %>
 
<%#*<div class="field">%>
    <%#*<b>Descripción</b>%>
    <%#= @cultural_heritage_cultural_heritage.description %>
<%#*</div>%>
<%# if @cultural_heritage_cultural_heritage_researches.size > 0 %>

<%#*<br></br>%>
<%#*<table class="paginated_table">%>
  <%#*<thead>%>
  <%#*<tr>%>
     <%#*<th>Archivo</th>%>
     <%#*<th>Título</th>%>
     <%#*<th>Descripción</th>%>
     <%#*<th>Autor</th>%>
     <%#*<th></th>%>
  <%#*</tr>%>
<%#*</thead>%>
<%#*<tbody>%>
    <%# @cultural_heritage_cultural_heritage_researches.each do |cultural_heritage_cultural_heritage_avatar| %>
    <%#*<tr>%>
      <%#*<td><%= link_to "Archivo", {:action => "show_file",:id => cultural_heritage_cultural_heritage_avatar.id} %</td>%>
      <%#*<td><%=cultural_heritage_cultural_heritage_avatar.title%</td>%>
      <%#*<td><%=cultural_heritage_cultural_heritage_avatar.description%</td>%>
      <%#*<td>%>
      <%#if !cultural_heritage_cultural_heritage_avatar.user.blank?%>
            <%#=cultural_heritage_cultural_heritage_avatar.obj_user.str_complete_name%>
      <%#end%>
      <%#*</td>%>
      <%#*<td>%>
      <%#= link_to image_tag("navi/cross-16-ns.png", :border => 0, :title => 'Eliminar'),{:controller=>"/cultural_heritage/cultural_heritages",  :action => 'delete_research', :id => cultural_heritage_cultural_heritage_avatar.id},{:confirm => 'Esta seguro?'} %>
        <%#*</td>%>
    <%#*</tr>%>
    <%# end %>
<%#*</tbody>%>
<%#*</table>%>
<%# else %>
  <%#*<p>Ninguna Investigacion encontrada</p>%>
<%# end %>
<%#*<br />%>

<%#= link_to 'Nueva Investigacion',{:action => 'new_research',:id => @cultural_heritage_cultural_heritage.id}%>
